/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "集瑞任务管理表",TableName = "cc_task",DetailTable =  new Type[] { typeof(cc_tasklist)},DetailTableCnName = "进度反馈明细")]
    public partial class cc_task:BaseEntity
    {
        /// <summary>
       ///集瑞任务管理表
       /// </summary>
       [Key]
       [Display(Name ="集瑞任务管理表")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cc_task_id { get; set; }

       /// <summary>
       ///序号
       /// </summary>
       [Display(Name ="序号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string xuh { get; set; }

       /// <summary>
       ///提出部门
       /// </summary>
       [Display(Name ="提出部门")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string tc_departname { get; set; }

       /// <summary>
       ///问题描述
       /// </summary>
       [Display(Name ="问题描述")]
       [MaxLength(5000)]
       [Column(TypeName="varchar(5000)")]
       [Editable(true)]
       public string q_decribe { get; set; }

       /// <summary>
       ///受理时间
       /// </summary>
       [Display(Name ="受理时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime rec_datetime { get; set; }

       /// <summary>
       ///进度说明
       /// </summary>
       [Display(Name ="进度说明")]
       [Column(TypeName="varchar(8000)")]
       [Editable(true)]
       public string a_decribe { get; set; }

       /// <summary>
       ///提出人
       /// </summary>
       [Display(Name ="提出人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string tc_ren { get; set; }

       /// <summary>
       ///责任人
       /// </summary>
       [Display(Name ="责任人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string zeren { get; set; }

       /// <summary>
       ///进度(%)
       /// </summary>
       [Display(Name ="进度(%)")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int progress { get; set; }

       /// <summary>
       ///计划完成
       /// </summary>
       [Display(Name ="计划完成")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? plan_datetime { get; set; }

       /// <summary>
       ///解决方案(文档连接)
       /// </summary>
       [Display(Name ="解决方案(文档连接)")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string solution { get; set; }

       /// <summary>
       ///实际完成时间
       /// </summary>
       [Display(Name ="实际完成时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? sj_datetime { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string Creator { get; set; }

       [Display(Name ="进度反馈明细")]
       [ForeignKey("cc_task_id")]
       public List<cc_tasklist> cc_tasklist { get; set; }

    }
}